package demo2;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class DBUtil {
    @Value("Spring.datasource.url")
    private String url;
    @Value("Spring.datasource.username")
    private String username;
    @Value("Spring.datasource.password")
    private String password;

    public String getUsl() {
        return url;
    }

    public void setUsl(String usl) {
        this.url = usl;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
